package com.ramnight.sql2.component;

import java.util.HashMap;
import java.util.Map;

import com.ramnight.sql2.ext.ExMap;

public class Record extends ExMap<Record> {
	
	public Record(){
		map(new HashMap<String, Object>());
	}
	
	public Record(Map<String, Object> map){
		map(map);
	}
	
	/**
	 * for group_concat
	 * split "1,2,3,4,5"
	 */
	public Record toArray(String key){
		this.set(key, getString(key).split(","));
		return this;
	}
}
